import request from '@/utils/request'


// 查询自提设置详细
export function getPickupSetting() {
  return request({
    url: '/wechat/pickupSetting/',
    method: 'get'
  })
}

// 修改自提设置
export function updatePickupSetting(data) {
  return request({
    url: '/wechat/pickupSetting',
    method: 'put',
    data: data
  })
}

// 状态修改
export function changePickupSettingStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/wechat/pickupSetting/changeStatus',
    method: 'put',
    data: data
  })
}
